package edu.lnu.ums.entities;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


@Entity
public class UniversityPublications extends Publication {
    private static final long serialVersionUID = 1L;

    @ManyToOne(cascade = {CascadeType.PERSIST})
    @JoinColumn(name = "faculty")
    private Faculty faculty;

    public Faculty getFaculty() {
        return faculty;
    }

    public void setFaculty(Faculty faculty) {
        this.faculty = faculty;
    }
    
}
